import { Controller, Get, Post, Body, Patch, Param, Delete } from '@nestjs/common';
import { SceneTagsService } from './scene-tags.service';
import { CreateSceneTagDto } from './dto/create-scene-tag.dto';
import { UpdateSceneTagDto } from './dto/update-scene-tag.dto';

@Controller('scene-tags')
export class SceneTagsController {
  constructor(private readonly sceneTagsService: SceneTagsService) {}

  @Post('create')
  create(@Body() createSceneTagDto: CreateSceneTagDto) {
    return this.sceneTagsService.create(createSceneTagDto);
  }

  @Get('get-all-tags')
  findAll() {
    return this.sceneTagsService.findAll();
  }

  @Get('get-tag-by-id/:id')
  findOne(@Param('id') id: string) {
    return this.sceneTagsService.findOne(id);
  }

  @Get('get-tag-by-name/:name')
  findByName(@Param('name') name: string) {
    return this.sceneTagsService.findByName(name);
  }

}
